package com.sxt.service.impl;

import com.sxt.domain.Bills;
import com.sxt.mapper.BillsMapper;
import com.sxt.service.BillsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BillsServiceImpl implements BillsService{

    @Resource
    private BillsMapper billsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return billsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Bills record) {
        return billsMapper.insert(record);
    }

    @Override
    public int insertSelective(Bills record) {
        return billsMapper.insertSelective(record);
    }

    @Override
    public Bills selectByPrimaryKey(Integer id) {
        return billsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Bills record) {
        return billsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Bills record) {
        return billsMapper.updateByPrimaryKey(record);
    }

}
